package com.aier.user.entity;

import java.sql.Timestamp;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;

import com.aier.common.common.Constant;

/**
 * 对话回复实体
 */
@SuppressWarnings("serial")
@Entity
@Table(name = "dialog_comment", catalog = "abc")
public class DialogComment implements java.io.Serializable {

    // 标志
    private Long dcid;
    // 对话id
    private Long did;
    // 用户id
    private Long cuid;
    // 职务+名称  或  学生名+关系
    private String cname;
    // 内容
    private String content;
    // 时间
    private Timestamp cdate;
    // 头像
    private String headimg;

    /** default constructor */
    public DialogComment() {
    }

    @Id
    @GeneratedValue(strategy = IDENTITY)
    @Column(name = "dcid", unique = true, nullable = false)
    public Long getDcid() {
        return dcid;
    }

    public void setDcid(Long dcid) {
        this.dcid = dcid;
    }
    @Column(name = "did", nullable = false, length = Constant.num_20)
    public Long getDid() {
        return did;
    }

    public void setDid(Long did) {
        this.did = did;
    }
    @Column(name = "cuid", nullable = false, length = Constant.num_20)
    public Long getCuid() {
        return cuid;
    }

    public void setCuid(Long cuid) {
        this.cuid = cuid;
    }
    @Column(name = "cname")
    public String getCname() {
        return cname;
    }

    public void setCname(String cname) {
        this.cname = cname;
    }
    
    @Column(name = "content")
    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    @Column(name = "cdate")
    public Timestamp getCdate() {
        return cdate;
    }

    public void setCdate(Timestamp cdate) {
        this.cdate = cdate;
    }

    public String getHeadimg() {
        return headimg;
    }

    public void setHeadimg(String headimg) {
        this.headimg = headimg;
    }

}